// ==UserScript==
// @name          Ikariam - Quick Ally Message
// @description   Version 1.0 - Adds the circular message link to the diplomacy advisor's sidebar.
// @version       1.0
// @date          2008-10-25
// @namespace     archeorbiter.googlecode.com
// @include       http://s*.ikariam.tld/index.php?view=diplomacyAdvisor*
// @include       http://s*.ikariam.com.*/index.php?view=diplomacyAdvisor*
// @include       http://s*.*.ikariam.com/index.php?view=diplomacyAdvisor*
// @include       http://s*.ikariam.co.il/index.php?view=diplomacyAdvisor*
// ==/UserScript==


var par = document.getElementById('container2');
var next = document.getElementById('viewDiplomacyImperium');

var div = document.createElement('div');
div.className = 'dynamic';
div.innerHTML =
  '<h3 class="header">Action</h3>'+
  '<div class="content">'+
    '<ul class="links">'+
      '<li><a href="?view=sendAllyMessage&oldView=diplomacyAdvisor&type=50">Send circular message</a></li>'+
    '</ul>'+
  '</div>'+
  '<div class="footer"></div>';
par.insertBefore(div, next);
